(function(global, undefined){
	
	//Rat core Rat 核心
	var Rat = (function(){
		var Rat = function(selector, context){
			var _tmp = new Rat.fn.init(selector, context, rootRat);
			debug(_tmp)
			return _tmp;
		};
		//缓存核心变量，防止被重写
	// var	rootRat,
	// 	_Rat = global.Rat;
		Rat.fn = Rat.prototype = {
			version     : 0.01,
			constructor : Rat,
			init        : function( selector, context, rootRat){
				debug('init')
			}

		};
		Rat.prototype.init.prototype = Rat.prototype;
		console.log(Rat)
		return Rat;
	})();
	//debug(Rat.toString())
	//暴露到全局
	global.Rat = Rat;
})(this)